import httpRequest from '@/http/httpRequest'

// 获取质量检测列表
export const getList = (data) => {
  return httpRequest.post('/quality-inspection/list', data)
}

// 条件查询质量检测
export const getByCondition = (data) => {
  return httpRequest.post('/quality-inspection/get', data)
}

// 保存或更新质量检测
export const save = (data) => {
  return httpRequest.post('/quality-inspection/save', data)
}

// 删除质量检测
export const deleteInspection = (id) => {
  return httpRequest.delete(`/quality-inspection/delete/${id}`)
} 